
package com.xbongbong.sys.domain.dao;

import com.xbongbong.sys.domain.entity.RegisteredCallBackEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface RegisteredCallBackDao {
    
    Integer insert(RegisteredCallBackEntity registeredCallBack);

    Integer update(RegisteredCallBackEntity registeredCallBack);

    /**
     * 根据corpid删除实体，逻辑删除
     *
     * @param key 对应corpid
     *
     * @return
     */
    Integer deleteByKey(@Param("key") String key);

    /**
     * 根据corpid获取实体
     *
     * @param key 对应corpid
     *
     * @return
     */
    RegisteredCallBackEntity getByKey(@Param("key") String key);

    List<RegisteredCallBackEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

}